#pragma once
class Alog
{
private:
	bool check();
	TCHAR mtext[1024];
	TCHAR mmsg[2048];
	FILE * mfile;
	TCHAR mfilename[1024];
	int mfoutcnt;
	int mfouterr;
	int mcreatesign;
	TCHAR mhead[1024];
public:
	Alog();
	~Alog();

	void outmsg(TCHAR *msg);
	void foutmsg(TCHAR *msg);

	void out( TCHAR *msg, ... );
	void fout( TCHAR *msg, ...);

	void setHead( TCHAR *msg);

	static void s_setHead(TCHAR * msg);
	static void s_out(TCHAR * msg, ...);
	static void s_fout(TCHAR * msg, ...);
};
extern Alog * galog;
